// 购物车接口
import request from '@/utils/request'

// 购物车列表
export const getCartListAPI = data => request('/member/cart', 'GET', data)
// 加入购物车
export const joinCartAPI = data => request('/member/cart', 'POST', data)
// 删除/清空购物车商品
export const delCartAPI = data => request('/member/cart', 'DELETE', data)
// 修改购物车商品-单选和修改数量
export const singCheckCartAPI = data => request(`/member/cart/${data.skuId}`, 'PUT', data)
// 购物车全选/取消全选
export const allCheckCartAPI = data => request('/member/cart/selected', 'PUT', data)
